package cn.tedu._04mvcboot03.pojo.dat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UserArticleDTO {
    @NotBlank(message = "字符串不能为空白")
    @ApiModelProperty(value = "文章标题",required = true)
    private String title;
    @NotBlank(message = "字符串不能为空白")
    @Size(min=10,max=500,message = "内容长度为10到500之间")
    @ApiModelProperty(value = "文章内容",required = true)
    private String content;
}
